﻿#include<iostream>
using namespace std;
int main() {
	for (int a = 0; a <= 20; a++)
		for (int b = 0; b <= 33; b++)
			for (int c = 0; c <= 100; c++)
				if ((a + b + c == 100) && (a * 500 + b * 300 + c * 100 / 3 == 10000)) {
					cout << "高级桌子采购" << a << "张，普通桌子采购" << b << "张，椅子采购" << c << "把" << endl;
				}
	cout << endl;
	//运算次数100*100*100 100w

	for (int a = 0; a <= 20; a++)
		for (int b = 0; b <= 33; b++) {
			int c{ 100 - a - b };
			if ((c % 3 == 0) && (a + b + c == 100) && (a * 500 + b * 300 + c * 100 / 3 == 10000)) {
				cout << "高级桌子采购" << a << "张，普通桌子采购" << b << "张，椅子采购" << c << "把" << endl;
			}
		}
	cout << endl;
	//运算次数20*33=660

	for (int num{}; num <= 3; num++) {
		cout << "高级桌子采购" << num * 4 << "张，普通桌子采购" << 25 - num * 7 << "张，椅子采购" << 75 + 3 * num << "把" << endl;
	}
	//运算次数3
}